
import fetch from '../utils/fetch';

// const getwxToken = (params) => fetch('rest/crm/token', params, 'get');
// const wechatConfig = (params) => fetch('rest/crm/token', params, 'get');
const login = (params) => fetch('merchant/user/login', params, 'post');
const getVerifyCode = (params) => fetch('merchant/user/vCode', params, 'get');
const getShopInfo = (params) => fetch('merchant/info/siteInfo', params, 'get');
const getShopOrderCash = (p) => fetch('merchant/info/orderCash', p, 'get');
const getShopCashHistory = (params) => fetch('merchant/cash/applyList', params, 'get');
const applyCash = (params) => fetch('/merchant/cash/apply', params, 'post');
const logout = p => fetch('/merchant/info/logout', p, 'get');
export {
  // getwxToken,
  // wechatConfig,
  login,
  getVerifyCode,
  getShopInfo,
  getShopOrderCash,
  getShopCashHistory,
  applyCash,
  logout,
};
